﻿using OddUserManager.Model;
using System;
using System.Collections.Generic;
using System.Text;

namespace OddUserManager.Data.IRepositories
{
    public interface IRealTimeJCMatchRepository : IRepository<JCMatch>
    {
        List<JCMatch> GetMatchsByIds(List<int> ids);
        List<MatchOption> GetMatchOptionByIssues(List<string> issues);
        List<JCMatch> GetMatchsByIssues(List<string> issues);

        /// <summary>
        /// 根据期号查询比赛
        /// </summary>
        /// <param name="issue"></param>
        /// <returns></returns>
        List<JCMatch> GetMatchsByIssue(string issue);

        /// <summary>
        /// 根据时间区间查询比赛
        /// </summary>
        /// <param name="startTime"></param>
        /// <param name="endTime"></param>
        /// <returns></returns>
        List<MatchOption> GetMatchOptionByTime(DateTime startTime, DateTime endTime);
        /// <summary>
        /// 获取所有未完成的比赛
        /// </summary>
        /// <returns></returns>
        List<JCMatch> GetNoFinishedMatch();

        /// <summary>
        /// 获取所有的期号
        /// </summary>
        /// <returns></returns>
        List<string> GetAllIssues();
    }
}
